package me.luraframework.gateway.auth.handler;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

import java.util.List;
import java.util.Map;

/**
 * @ description: RpcAuthService
 * @ author: Liu Ran
 * @ data: 7/13/23 19:29
 */
@Service
@RequiredArgsConstructor
public class NoneAuthHandler implements AuthHandler {



    @Override
    public AuthType getAuthType() {
        return AuthType.NONE;
    }

    @Override
    public String getToken(ServerWebExchange exchange) {
        return null;
    }

    @Override
    public Mono<Map<String, Object>> getUserContext(ServerWebExchange exchange) {
        return Mono.empty();
    }

    @Override
    public List<String> isWhitelist(ServerWebExchange exchange) {
        return null;
    }
}
